package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品库存管理对象 medicine_inventory
 * 
 * @author Mr.abc
 * @date 2024-05-29
 */
public class MedicineInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品编号 */
    @Excel(name = "药品编号")
    private Integer medicineId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品厂家 */
    @Excel(name = "药品厂家")
    private String medicineFactory;

    /** 药品有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "药品有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date medicineUndate;

    /** 药品库存 */
    @Excel(name = "药品库存")
    private Long medicineNum;

    public void setMedicineId(Integer medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Integer getMedicineId() 
    {
        return medicineId;
    }
    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }
    public void setMedicineFactory(String medicineFactory) 
    {
        this.medicineFactory = medicineFactory;
    }

    public String getMedicineFactory() 
    {
        return medicineFactory;
    }
    public void setMedicineUndate(Date medicineUndate) 
    {
        this.medicineUndate = medicineUndate;
    }

    public Date getMedicineUndate() 
    {
        return medicineUndate;
    }
    public void setMedicineNum(Long medicineNum) 
    {
        this.medicineNum = medicineNum;
    }

    public Long getMedicineNum() 
    {
        return medicineNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medicineId", getMedicineId())
            .append("medicineName", getMedicineName())
            .append("medicineFactory", getMedicineFactory())
            .append("medicineUndate", getMedicineUndate())
            .append("medicineNum", getMedicineNum())
            .toString();
    }
}
